package com.consumer.controller; /**
 * @author: yihanyuan
 * @Description：
 * @Date: 2018/11/29 16:02
 */

import com.alibaba.dubbo.config.annotation.Reference;
import com.dubbo.service.OrderService;
import com.dubbo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: newdubbo
 * @description:
 * @author: yihanyuan
 * @create: 2018-11-29 16:02
 **/
@RestController
public class UserController {

    @Autowired
    OrderService orderService;

    @RequestMapping(value = "")
    public Object getUser() {
        return orderService.getUser();
    }
}
